package com.vanvalt.payhui.modules.pay.web;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.utils.DateUtils;
import com.thinkgem.jeesite.common.web.BaseController;
import com.vanvalt.payhui.modules.pay.entity.Banner;
import com.vanvalt.payhui.modules.pay.entity.News;
import com.vanvalt.payhui.modules.pay.entity.Pos;
import com.vanvalt.payhui.modules.pay.service.BannerService;
import com.vanvalt.payhui.modules.pay.service.NewsService;
import com.vanvalt.payhui.modules.pay.service.PosService;
import com.vanvalt.payhui.util.constat.Constant;

/**
 * Web站点
 * @author Xiaoyang
 *
 */
@Controller
@RequestMapping(value = "${frontPath}/nativepay")
public class NativePayController extends BaseController {

	/**
	 * 网站首页
	 */
	@RequestMapping
	public String index(Model model) {
		
		return "modules/nativepay/index-test";
	}
	
	@RequestMapping(value = "pay")
	public String pay(@RequestParam(required=false) String id, Model model) {
		
		return "modules/nativepay/index-pay";
	}
	
	@RequestMapping(value = "payResult")
	public String payResult(@RequestParam(required=false) String id, Model model) {
		
		return "modules/nativepay/index-pay-result";
	}
	
	@RequestMapping(value = "query")
	public String query(@RequestParam(required=false) String id, Model model) {
		
		return "modules/nativepay/index-query";
	}
	
	@RequestMapping(value = "refund")
	public String refund(@RequestParam(required=false) String id, Model model) {
		
		return "modules/nativepay/index-refund";
	}
	
	@RequestMapping(value = "refundQuery")
	public String refundQuery(@RequestParam(required=false) String id, Model model) {
		
		return "modules/nativepay/index-refund-query";
	}
	
	@RequestMapping(value = "paySuccess")
	public String paySuccess(@RequestParam(required=false) String id, Model model) {
		
		return "modules/nativepay/pay-success";
	}
	
	
}
